47e3a8b7b4feadcf48e0fbe502600157d6868e67,plugins/migrationAssistant/solutions/component/source_gen/jetbrains/mps/ide/migration/MigrationAssistantWizard.java,MigrationAssistantWizard,createSteps,#Project#MigrationManager#MigrationProblemsContainer#,33
Before Change
public Iterable<ProjectMigrationWithOptions.Option> translate(ProjectMigrationWithOptions it) {
return it.getOptions();
}
}).toListSequence());
MigrationsProgressWizardStep migrationsProgressWizardStep = new MigrationsProgressWizardStep(project, initialStep, manager, errorContainer, true);
MigrationErrorWizardStep migrationErrorWizardStep = new MigrationErrorWizardStep(project, errorContainer);
MigrationsProgressWizardStep fallBackProgressStep = new MigrationsProgressWizardStep(project, initialStep, manager, errorContainer, false);
After Change
sb.append(m).append("<br />");
}
sb.append("</font></body></html>");
List<ProjectMigrationWithOptions.Option> options = ListSequence.fromList(new ArrayList<ProjectMigrationWithOptions.Option>());
ListSequence.fromList(options).addElement(new ProjectMigrationWithOptions.Option<Void>("viewModulesToMigrate") {
@Override
public JComponent createComponent() {
JTextPane list = new JTextPane();
Messages.installHyperlinkSupport(list);
list.setText(sb.toString());
JPanel panel = new JPanel(new BorderLayout());
JBScrollPane scrollPane = new JBScrollPane(list);
panel.add(scrollPane, BorderLayout.CENTER);
panel.add(new JBLabel("Modules to be migrated:"), BorderLayout.NORTH);
panel.setPreferredSize(new Dimension((int) panel.getPreferredSize().getWidth(), 100));
return panel;
}
@Override
public Void getValue(JComponent component) {
return null;
}
});
ListSequence.fromList(options).addSequence(ListSequence.fromList(pMig).ofType(ProjectMigrationWithOptions.class).where(new IWhereFilter<ProjectMigrationWithOptions>() {
public boolean accept(ProjectMigrationWithOptions it) {
return it.shouldBeExecuted(ProjectHelper.fromIdeaProject(project));
}
}).translate(new ITranslator2<ProjectMigrationWithOptions, ProjectMigrationWithOptions.Option>() {
public Iterable<ProjectMigrationWithOptions.Option> translate(ProjectMigrationWithOptions it) {
return it.getOptions();
}
}));
InitialStep initialStep = new InitialStep(project, options);
MigrationsProgressWizardStep migrationsProgressWizardStep = new MigrationsProgressWizardStep(project, initialStep, manager, errorContainer, true);
MigrationErrorWizardStep migrationErrorWizardStep = new MigrationErrorWizardStep(project, errorContainer);